package com.bizmerce.rnd.oms.codemng.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.bizmerce.rnd.oms.codemng.service.AgreementsVO;

@Repository("agreementsDAO")
public class AgreementsDAO {

	static final List<AgreementsVO> agrResult = new ArrayList<AgreementsVO>();
	static {
		AgreementsVO agrvo = new AgreementsVO();
		agrvo.setCommonApply(true);
		agrvo.setCommonAccepted("34");
		agrvo.setAgricultureApply(false);
		agrvo.setAgricultureId("0000000001");
		agrvo.setAgricultureHsCode("342643");
		agrvo.setAgricultureName("한-칠레");
		agrvo.setAgricultureAccepted("26");
		agrvo.setTextilesApply(false);
		agrvo.setTextilesId("0000000002");
		agrvo.setTextilesHsCode("423643");
		agrvo.setTextilesName("한-EFTA");
		agrvo.setTextilesAccepted("76");
		agrResult.add(agrvo);
		
		agrvo = new AgreementsVO();
		agrvo.setCommonApply(true);
		agrvo.setCommonAccepted("87");
		agrvo.setAgricultureApply(false);
		agrvo.setAgricultureId("0000000002");
		agrvo.setAgricultureHsCode("23436");
		agrvo.setAgricultureName("한-EFTA");
		agrvo.setAgricultureAccepted("43");
		agrvo.setTextilesApply(false);
		agrvo.setTextilesId("0000000006");
		agrvo.setTextilesHsCode("743246");
		agrvo.setTextilesName("한-EFTA");
		agrvo.setTextilesAccepted("23");
		agrResult.add(agrvo);
		
		agrvo = new AgreementsVO();
		agrvo.setCommonApply(true);
		agrvo.setCommonAccepted("34");
		agrvo.setAgricultureApply(false);
		agrvo.setAgricultureId("0000000001");
		agrvo.setAgricultureHsCode("342643");
		agrvo.setAgricultureName("한-칠레");
		agrvo.setAgricultureAccepted("26");
		agrvo.setTextilesApply(false);
		agrvo.setTextilesId("0000000006");
		agrvo.setTextilesHsCode("743246");
		agrvo.setTextilesName("한-EFTA");
		agrvo.setTextilesAccepted("23");
		agrResult.add(agrvo);
	}

	/**
	 * 농수산물 허용비율 정보 가져오기
	 */
	public List<AgreementsVO> selectAgrs() {
		return agrResult;
	}
}